<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>
      <a class="brand" href="<%=home_path%>">Dispatcher</a>

      <div class="nav-collapse">
        <ul class="nav">
          <li class="divider-vertical"></li>
          <% if user_signed_in? %>
          <li><%= link_to "Drivers", drivers_path %></li>
          <li><%= link_to "Trucks", trucks_path %></li>
          <li><%= link_to "Customers", customers_path %></li>
          <li><%= link_to "Admin", admin_root_path %></li>
          <% end %>
        </ul>
        <% if user_signed_in? %>
        <ul class="nav pull-right">
          <li class="divider-vertical"></li>
          
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="#">Profile</a></li>
              <li class="divider"></li>
              <li>
                <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
              </li>
            </ul>
          </li>
        </ul>
        <% end %>
      </div>
    </div>
  </div>
</div>
